import request from '@/utils/request'

// 查询计时类型维护列表
export function listTimingtype(query) {
  return request({
    url: '/motr/timingtype/list',
    method: 'get',
    params: query
  })
}

// 查询计时类型维护详细
export function getTimingtype(id) {
  return request({
    url: '/motr/timingtype/' + id,
    method: 'get'
  })
}

// 新增计时类型维护
export function addTimingtype(data) {
  return request({
    url: '/motr/timingtype',
    method: 'post',
    data: data
  })
}

// 修改计时类型维护
export function updateTimingtype(data) {
  return request({
    url: '/motr/timingtype',
    method: 'put',
    data: data
  })
}

// 删除计时类型维护
export function delTimingtype(id) {
  return request({
    url: '/motr/timingtype/' + id,
    method: 'delete'
  })
}
